package com.shujia.base;

import com.shujia.utils.HbaseTool;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.Result;

import java.util.Arrays;
import java.util.Iterator;


//测试工具类
public class Test {
    public static void main(String[] args) {
//        Connection conn = HbaseTool.CONNECTION;
//        Admin admin = HbaseTool.ADMIN;
//
//        System.out.println(conn);
//        System.out.println(admin);

        HbaseTool.createHbaseTable("test5","cf1","cf2","cf3");

//        Iterator<Result> studentsRes = HbaseTool.scanData("students");
//        while (studentsRes.hasNext()){
//            Result rs = studentsRes.next();
//            HbaseTool.printResult(rs);
//        }
        //"test3", "cf1","cf2","f","m"
//        HbaseTool.createPreviewTable("test3", Arrays.asList("cf1","cf2"), Arrays.asList("f","m"));
//
//        HbaseTool.close();


    }
}
